package sort;

public class recursionDemo2 {
    public static void main(String[] args) {
        System.out.println(getJC(5));
    }
    public static int getJC(int number){
        if(number == 1){
            return 1;
        }
        return number * (getJC(number - 1));
    }
}
